package day319.demo1;

import day319.demo1.Father;

public class Son extends Father {
    @Override
    public void toString(String name,int age) {
        this.setAge(age);
        this.setName(name);
        System.out.println("儿子的姓名为:"+getName()+"，年龄为:"+getAge());
    }
}
